Category: Geeks r Us
I would like to find out how to get the ips of people at your site, i mean, i am using php and know how to get the one, with $_SERVER blah blah blah, but i would like to be able to show how many people are logged onto the site at the same time, requiring that there would obviously be more than 1 ip. anyone know how to do something like this with php?
when i test my own page, i can display the last ip that went to the site, but not both being i have two computers, or however many i did have
Get the IP on page load and store it somewhere such as a database. Query the database for all IPs that have accessed your page in the last x minutes. Consider everyone who has accessed the page in a certain time period, such as 5 minutes, as being logged into it.